package com.aaa.controller;


import com.aaa.entity.query.RentExpireQuery;
import com.aaa.entity.result.Result;
import com.aaa.service.RentExpireService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * @author ：陈凯歌
 * @date ：
 * @description：租金到期Controller
 * @modified By：
 * @version: 1.0
 */
@RestController
@RequestMapping("/Expire")
public class RentExpireController {

    @Autowired
    private RentExpireService service;

    @PostMapping("/page")
    public Result listAll(@RequestBody RentExpireQuery query){

        System.out.println(query.getPage()+"--------"+query.getCount());

        return service.getPage(query);
    }
}
